package DianShang_2024.ds_server.indicator

import org.apache.spark.sql.SparkSession

object table_preparation {
  def main(args: Array[String]): Unit = {
    val spark = SparkSession.builder()
      .appName("指标计算准备数据库")
      .master("local[*]")
      .enableHiveSupport()
      .getOrCreate()


    spark.sql("create database if not exists dws")
    spark.sql("show databases").show
    spark.sql("use dwd_server")
    spark.sql("show tables").show





     spark.close()
  }

}
